package ooday01;
/* 汽车测试的类*/
public class CarTest {
    public static void main(String[] args) {
       Car car1 = new Car();
       /*给每个属性赋值*/
       car1.brand = "大众";
       car1.color = "白色";
       car1.price = 80;
       car1.start();
       car1.run();
       car1.stop();

       /*构造方法1*/
       Car car2 = new Car("特斯拉","白色",20);
       car2.start();
       car2.run();
       car2.stop();
    }
}
